package com.lyrcsoft.myapp.controller;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * 功能描述
 *
 * @author fujc-dev@qq.com
 * @date: 2023年11月01日 11:22
 */
@RestController
public class HomeController implements InitializingBean {

    @RequestMapping(value = "/test", method = {RequestMethod.GET})
    public String test() {
        return "test";
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("afterPropertiesSet");
    }
}
